<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Application\Form;

use Zend\Captcha\AdapterInterface as CaptchaAdapter;
use Zend\Form\Element;
use Zend\Form\Form;
use Zend\Captcha;
use Zend\Form\Factory;

class LoginForm extends Form
{
    public function __construct($name = null)
    {
        parent:: __construct($name);
        $this->add(array(
            'name' => 'nombre',
            'options' => array(
                'label' => 'Usuario',
            ),
            'attributes' => array(
                'type' => 'text',
                'class' =>'input',
            ),
        ));
        $this->add(array(
            'name' => 'passwd',
            'options' => array(
                'label' => 'passwd',
            ),
            'attributes' => array(
                'type' => 'password',
            ),
        ));
        $this->add(array(
            'name' => 'Submit',
            'attributes' => array(
                'type' => 'submit',
                'title' => 'Entrar',
                'value' => 'Login',
                'class' => 'btn btn-success pull-right'
            ),
        ));

	$this->add(array(
            'name' => 'entrar_pef',
            'attributes' => array(
                'type' => 'submit',
                'title' => 'Entrar',
                'value' => 'Soy Invitado',
                'class' => 'btn btn-danger pull-right'
            ),
        ));
        $this->add(array(
            'name' => 'Solicitudes',
            'attributes' => array(
                'type' => 'submit',
                'title' => 'Entrar',
                'value' => 'Ver Lista de Solicitudes',
                'class' => 'btn btn-info pull-right'
            ),
        ));
        $this->add(array(
            'name' => 'Redactar',
            'attributes' => array(
                'type' => 'submit',
                'title' => 'Entrar',
                'value' => 'Redactar Solicitud',
                'class' => 'btn btn-info pull-right'
            ),
        ));
         $this->add(array(
            'name' => 'Ver',
            'attributes' => array(
                'type' => 'submit',
                'title' => 'Ver',
                'value' => 'Ver',
                'class' => 'btn btn-info pull-right'
            ),
        ));
        $oculto1 = new Element\Hidden('id_oculto');
        $this->add($oculto1);
        $oculto2 = new Element\Hidden('rol_oculto');
        $this->add($oculto2);
        $oculto3 = new Element\Hidden('mesa_oculto');
        $this->add($oculto3);
    }
}
